clear
rng default


workers=500; %number of parallel workers


IdSetW_temp=cell(workers,1);
miss=[];
for ii = 1:workers
    if isfile(['IdSetW.' num2str(ii) '.mat'])
       load(['IdSetW.' num2str(ii) '.mat']);
       IdSetW_temp{ii}= IdSetW;
    else
        miss=[miss ii];
    end
end

IdSetW_final= vertcat(IdSetW_temp{:}); 

save('IdSetW_final.mat', 'IdSetW_final')